package com.lechi.web.vo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;


/**
 * 设备对象 iot_device
 *
 * @author yangguang
 */
@Data
public class IotDeviceCmdSendVo {

    /**
     * 设备ID
     */
    private Long deviceId;

    /**
     * 设备序列号
     */
    @NotBlank(message = "参数deviceSn不能为空")
    @Length(max = 50, message = "参数deviceSn长度不能大于{max}")
    private String deviceSn;

    /**
     * 协议类型
     */
    @NotBlank(message = "参数protocolType字段不能为空")
    private String protocolType;

    /**
     * 指令
     */
    @NotBlank(message = "参数cmd字段不能为空")
    private String cmd;

}
